#ifndef ENEMY_9_H
#define ENEMY_9_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class ENEMY_9 : public QGraphicsObject
{

    Q_OBJECT

    QPainterPath *border;
    QPixmap *im;

    QGraphicsItemAnimation *anim_enemy;
    QTimeLine *enemy_time_line;

    QPoint fp_left;
    QPoint fp_right;

    QPoint begin;

    int otklonenie;

    int loop;

    COLLISIA_CONTROL *collisia_control;

    int point;

    SOUND_POWER *go;

public:

    explicit ENEMY_9(QPoint begin, QPoint end, int otklonenie, SCENE *scene, QTimeLine *global_tl, CASH *cash);

    QPainterPath shape() const;

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    void Step_Back_Now();

    void Move_To_Target();

    ~ENEMY_9();

    int type() const;


signals:

    void Fire(QPoint fire);

    void Kill_Me_Please(QGraphicsObject *);
    
public slots:

    void Must_Move();

    void Emit_Fire();

    void Damage_Detected(QPointF a,int d);

};

#endif // ENEMY_9_H
